<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.knowledge.model.Knowledge" %>
<%
	List<Knowledge> knowledgeList = (List<Knowledge>)request.getAttribute("knowledgeList");
	String count = (String)request.getAttribute("knowledgeCount");
	String userId = (String)request.getAttribute("userId");	
%>

<div class="extra-column">
	<div class="box-holder">
		<div class="profile-friends box">
			<h4 class="box-header">
				<span>知识(<%=count %>)</span>
				<small> <a href="knowledgelist.action?userId=<%=userId %>&user=own">查看全部</a> </small>
			</h4>
			<div class="box-body">
				<ul class="icon-list" style="text-align:left">
				<%
					if(knowledgeList != null){
						for(Knowledge k : knowledgeList){
				%>	
					<li style="background-image: url('img/blog.gif');">
						<a href="viewknowledge.action?knowledgeId=<%=k.getId() %>&userId=<%=userId %>&user=own" >
							<%=k.getTitle() %></a>
						<span class="small"><%=k.getAddData() %></span>
					</li>
				<%
						}
					}
				%>
				</ul>
			</div>			
		</div>
	</div>
</div>